/*
 * @Author: 张卓南
 * @Date: 2023-10-17 23:53:10
 * @LastEditTime: 2023-10-20 20:25:36
 * @Description:
 */
import { createRouter, createWebHistory } from "vue-router";
import Home from "@/views/home/index.vue";
import Start from "@/views/start/index.vue";

const routes = [
  {
    
    path: "/",
    name: "Start",
    component: Start,
  },
  {
    path: "/home",
    name: "Home",
    component: Home,
  },
  // 添加其他路由
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/Login.vue"),
    meta: {
      title: "登录",
    },
  },
  {
    // path: "/release",
    path: "/zaike",
    name: "Release",
    component: () => import("@/views/release/Release.vue"),
    meta: {
      title: "发布载客",
    },
  },
  {
    path: "/xinchen",
    name: "Xinchen",
    component: () => import("@/views/xinchen/Xinchen.vue"),  
  },
  {
    path: "/useCar",
    name: "UseCar",
    component: () => import("@/views/useCar/index.vue"),
    meta: {
      title: "用车",
    },
  },
  {
    path: "/result",
    name: "Result",
    component: () => import("@/views/result/index.vue"),
    meta: {
      title: "搜索结果",
    },
  },
  {
    path: "/preResult",
    name: "PreResult",
    component: () => import("@/views/preResult/index.vue"),
    meta: {
      title: "预定结果",
    },
  },
  {
    path: "/zaikeInfo",
    name: "ZaikeInfo",
    component: () => import("@/views/zaikeInfo/index.vue"),
    meta: {
      title: "载客信息",
    },
  },
  {
    path: "/mine",
    name: "Mine",
    component: () => import("@/views/mine/index.vue"),
    meta: {
      title: "我的信息",
    },
  },
];


const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
